package com.models;

import net.sf.json.JSONObject;

import com.om.base.Utils;
import com.om.common.BaseBean;

public class ControlsCombine extends BaseBean {
	public ControlsCombine(){
		this.TABLE_NAME ="requirement_combine";
		this.PrimaryKey ="id";
		this.addForignRelation("ControlGuidCode","GuidCode",Controls.class,true,"Controls",true);
	}
	
	@Override
	public void afterLoad() throws Exception{
		if(!Utils.IsNullOrEmpty(this.getStringValue("extend_config"))){
			JSONObject jsonObj =JSONObject.fromObject(this.getStringValue("extend_config"));
			this.set("extend_config", jsonObj);			
		}
		super.afterLoad();
	}
}
